package main
import "fmt"

func main(){
	var data1 = [5]int{1,2,3,4,5}
	var data2 = [...]int{8,90,55,66,23}
	// var data3 = [...]float32{1.1,2.2,3.3,4.4,5.5}
	// var data_str = [...]string{"lilisi","Jack","Tom"}

	// 增
	// append 不支持

	// 删
	// drop 不支持

	// 改
	data1[2] = 66

	// 查
	var value = data1[3]
	fmt.Println(value)

	// 遍历
	for i := 0; i < len(data1); i++ {
		fmt.Println(data1[i])
	}

	for index, value := range data2 {
		fmt.Println(index, value)
	}
}
